Skip to content

feat(generated): Agents (batch 13ebc8c1) - #722

Merged
workos-sdk-automation[bot] merged 2 commits into
mainfrom
oagen/batch-13ebc8c1
Sep 1, 2026
Merged

feat(generated): Agents (batch 13ebc8c1)#722
workos-sdk-automation[bot] merged 2 commits into
mainfrom
oagen/batch-13ebc8c1

Conversation

@workos-sdk-automation

Copy link
Copy Markdown
Contributor

Summary

Regenerated SDK from spec changes.

Triggered by workos/openapi-spec@b6350ef

@workos-sdk-automation
workos-sdk-automation Bot requested a review from a team as a code owner September 1, 2026 21:42
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Sep 1, 2026
@workos-sdk-automation
workos-sdk-automation Bot requested a review from a team as a code owner September 1, 2026 21:42
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Sep 1, 2026
@greptile-apps

greptile-apps Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR regenerates the Agents SDK surface to add blueprint-token validation and make blueprint session settings optional.

  • Adds matching synchronous and asynchronous validate_blueprint_token methods.
  • Adds typed request and validation-response models with serialization tests.
  • Updates generated model exports, manifests, fixtures, and changelog metadata.
  • Preserves the shared client request and typed-response conventions.

Confidence Score: 5/5

The PR appears safe to merge, with the generated sync and async endpoint surfaces, request shape, exports, and response model remaining aligned.

The new endpoint uses the shared request layer with the expected route and typed response, optional session settings are serialized consistently, and no concrete build, runtime, contract, or security failure remains.

Important Files Changed

Filename Overview
src/workos/agents/_resource.py Adds aligned sync and async token-validation methods and makes blueprint session settings optional without introducing a concrete request-path defect.
src/workos/agents/models/agent_token_validation.py Adds the typed token-validation response model, consistently matching the supplied API fixture and generated serialization conventions.
src/workos/agents/models/agent_blueprints_create_request.py Changes session settings from required to optional and consistently omits the field when absent.
src/workos/common/models/init.py Exposes existing generated discriminator types through the common-model namespace; all referenced modules exist and no concrete collision was identified.
tests/test_agents.py Covers the new endpoint's synchronous and asynchronous route, response type, and core request behavior.
tests/test_agents_models_round_trip.py Adds round-trip and nullable-field coverage for the token-validation response model.

Sequence Diagram

sequenceDiagram
    participant App as Application
    participant SDK as WorkOS Agents SDK
    participant API as WorkOS API
    App->>SDK: validate_blueprint_token(blueprint_id, access_token)
    SDK->>API: "POST /agents/blueprints/{id}/tokens/validate"
    alt Token is valid
        API-->>SDK: Validation claims and session metadata
        SDK-->>App: AgentTokenValidation
    else Token is invalid
        API-->>SDK: API error with stable code
        SDK-->>App: Typed SDK exception
    end
Loading

Reviews (1): Last reviewed commit: "chore(generated): add release notes frag..." | Re-trigger Greptile

@workos-sdk-automation
workos-sdk-automation Bot merged commit 9d30466 into main Sep 1, 2026
11 checks passed
@workos-sdk-automation
workos-sdk-automation Bot deleted the oagen/batch-13ebc8c1 branch September 1, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autogenerated Autogenerated code or content

Development

Successfully merging this pull request may close these issues.

0 participants